<template>
  <div class="centerBox">
    <div class="main">
      <div class="left-box">
        
      </div>
      <div class="right-box">
        <div class="nav">
          <router-link class="login-link" active-class="active-link" to="/loginForm" @click.prevent >账号登录</router-link>
        </div>
        <div class="main-form">
          <router-view></router-view>
        </div>
      </div>
    </div>
  </div>
  
</template>

<script>

    export default {
        name:'Login',
        data(){
            return{

            }
        }
    }
</script>

<style scoped>
  .centerBox{
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
      height: 100vh;
      background-color: lightblue;
  }
  .main{
      width: 750px;
      height: 600px;
      background-color: lightcyan;
      display: flex;
      justify-content: center;
      align-items: center;
      border-radius: 2%;
  }

  .left-box, .right-box{
    height: 100%;
    text-align: center;
  }
  .left-box{
    width: 40%;
    background-color: #5779dd;
    border-top-left-radius: 2%;
    border-bottom-left-radius: 2%;
  }

  .right-box{
    width: 60%;
    background-color: white;
    border-top-right-radius: 2%;
    border-bottom-right-radius: 2%;
  }
  .login-link, .register-link{
    color: black;
    text-decoration: none;
    display:inline-block;
    width: 175px;
    height: 40px;
    line-height: 40px;
    border-bottom: solid 3px#f7f7f7a4;
    margin-top: 30px;
  }
  .active-link{
    color: #e32626;
    border-bottom: solid 3px #e32626;
  }
  .main-form{
    width: 400px;
    height: 35vh;
    margin: 20px auto;
  }
</style>